/*
 * SolveEquationSystem.cpp
 *
 *  Created on: 17/06/2011
 *      Author: Idan
 */

#include "SolveEquationSystem.h"

SolveEquationSystem::SolveEquationSystem(const Matrix& A, const Matrix& B,
		int priority, const int jobID):Job(A,B,priority,jobID) {}
Matrix SolveEquationSystem::execute(){
	if(matrix2.columns()!=1){
		throw OperationFailed();
	}
	Matrix inverse = matrix1.inverse();
	return inverse*matrix2;
}
